import {Platform, StyleSheet, Dimensions} from 'react-native';
import px2dp from '../../utils/px2dp';

const styles = StyleSheet.create({
  container: {
    flex: 1,
    backgroundColor: '#f7f7f7',
  },
  list: {
    flexDirection: 'row',
    alignItems: 'center',
    marginHorizontal: px2dp(23),
    backgroundColor: '#fff',
    // borderBottomColor: '#eee',
    // borderBottomWidth: px2dp(1),
    borderRadius: px2dp(8),
    marginVertical: px2dp(15),
  },
  coupon_bg: {
    width: px2dp(276),
    height: px2dp(123),
    alignItems: 'center',
    justifyContent: 'center',
  },
  coupon_info: {
    flexDirection: 'row',
    alignItems: 'center',
  },
  unit_text: {
    fontSize: px2dp(26),
    color: '#fff',
  },
  money_text: {
    color: '#fff',
    fontSize: px2dp(64),
    fontWeight: 'bold',
  },
  type_text: {
    color: '#fff',
    fontSize: px2dp(20),
  },
  footer: {
    height: px2dp(21),
    backgroundColor: 'rgba(255, 255, 255, 0.7)',
    justifyContent: 'center',
    alignItems: 'center',
    paddingHorizontal: px2dp(24),
  },
  foot_text: {
    fontSize: px2dp(16),
    color: '#EB4232',
  },
  info: {
    flex: 1,
    height: px2dp(123),
    paddingHorizontal: px2dp(21),
    paddingVertical: px2dp(12),
    justifyContent: 'space-between',
  },
  info_text: {
    color: '#333',
    fontSize: px2dp(22),
    lineHeight: px2dp(30),
  },
  box: {
    flexDirection: 'row',
    alignItems: 'center',
    justifyContent: 'space-between',
  },
  time: {
    fontSize: px2dp(18),
    color: '#FF0000',
  },
  btn: {
    width: px2dp(136),
    height: px2dp(38),
    justifyContent: 'center',
    alignItems: 'center',
    borderRadius: px2dp(19),
    backgroundColor: '#EB0029',
  },
  no_btn: {
    width: px2dp(136),
    height: px2dp(38),
    justifyContent: 'center',
    alignItems: 'center',
    borderRadius: px2dp(19),
    backgroundColor: '#999',
  },
  btn_text: {
    color: '#fff',
    fontSize: px2dp(18),
  },
});

export default styles;
